package com.example.javadesign.builder.chain;

/**
 * @author 陳樂
 * @version 1.0.0
 * @ClassName PeopleBuilder.java
 * @Description TODO
 * @createTime 2022年08月24日 22:51:00
 */
public class PeopleBuilder {

    private People people = new People();

    public People build() {
        return people;
    }

    public PeopleBuilder setName(String name) {
        people.setName(name);
        return this;
    }

    public PeopleBuilder setAddress(String address) {
        people.setAddress(address);
        return this;
    }

    public PeopleBuilder setAge(Integer age) {
        people.setAge(age);
        return this;
    }
}
